package com.bestom.waterquality.logic;

import android.content.Context;
import android.content.Intent;
import android.provider.Settings;
import android.view.View;

import com.bestom.waterquality.R;

/**
 * 4G设置
 */
public class FourGSet {

    public static void setDataAndListen(Context context, View view){

        view.findViewById(R.id.go_4g).setOnClickListener(v -> {
            Intent intent =  new Intent(Settings.ACTION_NETWORK_OPERATOR_SETTINGS);
            intent.putExtra(":settings:show_fragment_as_subsetting", true);
            context.startActivity(intent);
        });
    }
}
